package com.daodway.designpattern.statepattern;


public abstract class BaseGameEntity {
	private long m_ID;
	public String entityName="";
	private static long m_iNextValidID(){
		return ProfileUtil.getAtomicCounter();
	}
	private void setId(long val){
		m_ID=val;
	}
	public BaseGameEntity(long id,String entityName){
		setId(id);
		this.entityName=entityName;
	}
	public abstract void update();
	public abstract boolean HandleMessage(Telegram msg);
	public long ID(){
		return m_ID;
	}
	
}
